(*
   Copyright (c) 2022-2025 Semgrep Inc.

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public License
   version 2.1 as published by the Free Software Foundation.

   This library is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file
   LICENSE for more details.
*)
type caps = < Cap.stdout ; Cap.network ; Cap.tmp ; Cap.readdir >

(*
   Parse a semgrep-show command, execute it and exit.

   Usage: main caps [| "semgrep-show"; ... |]

   This function returns an exit code to be passed to the 'exit' function.
   we need the network for the 'semgrep show identity/deployment'
*)
val main : < caps ; .. > -> string array -> Exit_code.t

(* called from main() but also from Scan_subcommand.ml to manage the legacy
 * way to show things (e.g., 'semgrep scan --show-supported-languages')
 *)
val run_conf : < caps ; .. > -> Show_CLI.conf -> Exit_code.t
